Given a fragment referenced multiple times, When include missing fragments, Then do not duplicate in patch

Tests this scenario:

query SomeQuery { someObjectA { ...fragmentA } }

fragment fragmentA on SomeObjectA { id someObjectC { ...fragmentC } someObjectB { ...fragmentB } }

----------------------------

Fragment/fragmentB.graphql

fragment fragmentB on SomeObjectB { id someObjectC { ...fragmentC } }

----------------------------

Fragment/fragmentC.graphql

fragment fragmentC on SomeObjectC { id }

(Both fragmentA and fragmentB reference fragmentC. fragmentB and fragmentC are externally defined, in the

Fragment folder. When the patch is created, fragmentB and fragmentC definition should only be added once to

the final patch).